import { StateTree, StoreActions, StoreGetters } from "pinia";

export declare interface repoState extends StateTree {
    repoCommits: RepoCommitsType[];
}
export declare interface repoActions extends StoreActions<repoState> {
    getAndSetRepoCommits(page?: number): Promise<void>;
}
export declare interface repoGetters extends StoreGetters<repoState> {
}

export declare type RepoCommitsType = {
    id: string | number
    url?: string,  // 提交详情地址
    avatar?: string, // 提交作者名称
    avatarUrl?: string, // 提交作者头像
    message?: string, // 提交信息
    date?: number | string | Date, // 提交时间
}